package com.ltkj.ticket.mapper;

import java.util.List;
import com.ltkj.ticket.domain.TicScenic;
import com.ltkj.ticket.domain.vo.TicScenicDetailVo;
import com.ltkj.ticket.domain.vo.TicScenicVo;
import org.apache.ibatis.annotations.Param;

/**
 * 景区门票基础Mapper接口
 * 
 * @author ruoyi
 * @date 2023-08-31
 */
public interface TicScenicMapper 
{
    /**
     * 查询景区门票基础
     * 
     * @param scenicId 景区门票基础主键
     * @return 景区门票基础
     */
    public TicScenic selectTicScenicByScenicId(Long scenicId);

    /**
     * 查询景区门票基础列表
     * 
     * @param ticScenic 景区门票基础
     * @return 景区门票基础集合
     */
    public List<TicScenic> selectTicScenicList(TicScenic ticScenic);

    /**
     * 新增景区门票基础
     * 
     * @param ticScenic 景区门票基础
     * @return 结果
     */
    public int insertTicScenic(TicScenic ticScenic);

    /**
     * 修改景区门票基础
     * 
     * @param ticScenic 景区门票基础
     * @return 结果
     */
    public int updateTicScenic(TicScenic ticScenic);

    /**
     * 删除景区门票基础
     * 
     * @param scenicId 景区门票基础主键
     * @return 结果
     */
    public int deleteTicScenicByScenicId(Long scenicId);

    /**
     * 批量删除景区门票基础
     * 
     * @param scenicIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTicScenicByScenicIds(Long[] scenicIds);

    int offshelf(@Param("scenicId") Long scenicId,@Param("username")String username);

    int onshelf(@Param("scenicId")Long scenicId,@Param("username")String username);

    TicScenicVo selectTicScenicByScenicIdNew(Long scenicStockId);
}
